const { generateService } = require("@umijs/openapi");

generateService({
    //  使用自己封装的请求库
    requestLibPath: "import request from '@/libs/request'",
    //  根据接口文档生成
    schemaPath: "http://127.0.0.1:8101/api/v2/api-docs",
    //  生成代码目录
    serversPath: "./src",
});
